package com.szp.spCloud.codeService.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(name="mail-service")
public interface EmailFeignClient {
    @RequestMapping(value = "/api/email/{email}/{code}",method= RequestMethod.GET)
    public boolean sendCode(@PathVariable(value = "email") String email,@PathVariable(value = "code") String code);

    @RequestMapping(value = "/api/email/test",method= RequestMethod.GET)
    public boolean test();
}
